﻿using System;
using System.Collections.Generic;
using System.Text;

namespace eKanBan.Model
{
    [Serializable]
    class FeaturePhase
    {
        //private Phase phase;
        //private DateTime startTime;
        //private DateTime finishTime;
        //private DateTime deadline;

        //public Phase Phase { get { return phase; } set { phase = value;} }
        //public DateTime StartTime { get { return startTime; } set { startTime = value; } }
        //public DateTime FinishTime { get { return finishTime; } set { finishTime = value; } }
        //public DateTime DeadLine { get { return deadline; } set { deadline = value; } }
        public FeaturePhase(BasePhase phase)
        {
            BasePhase = phase;
            StartTime = DateTime.Now;
            FinishTime = DateTime.MinValue;
            DeadLine = DateTime.MinValue;
        }

        public BasePhase BasePhase { get; set; }
        public DateTime StartTime { get; set; }
        public DateTime FinishTime { get; set; }
        public DateTime DeadLine { get; set; }
        public override string ToString()
        {
            string str = "BasePhase: " + BasePhase;
            str += String.Format("\nStartTime: {0}\tFinishTime: {1}\tDeadLine: {2}", StartTime, FinishTime, DeadLine);
            return str;
        }
    }
}
